<#setting datetime_format="yyyy-MM-dd"/>
<@admin.header title="测评师管理">
<script type="text/javascript">
    $(document).ready(function(){
    	App.ns('ResaleApply');
		
		
		ResaleApply.form = new App.common.Form({
			base:'${base}/car/apply'
		});
		
		
		ResaleApply.search = function(){
			$('#searchForm').submit();
		}
		ResaleApply.delAll = function(){
			var ids = ResaleApply.form.getCheckboxValues();
			ResaleApply.form.deleteRecord(ids);
		}
		
		ResaleApply.del = function(id){
			ResaleApply.form.deleteRecord(id,null, function(){
			$("#tr_"+id).hide();
				App.toast.success("操作成功");
		});
		}
    });
</script>
<style>
	.red {color:#f11;font-weight:bold;}
	.line {line-height:100%;text-indent:0px;word-break:break-all;}
</style>
</@admin.header>
    <body>
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li>
                    <a href="#">首页</a>
                </li>
                <li>
                    <a href="list.do?category=${page.category}"><#if page.category==0>转售申请<#else>估价申请</#if></a>
                </li>
            </ul>
        </div>
        <div class="rightinfo">
        	<!--默认查询表单-->
        <form action="list.do" method="post" id="searchForm">
            <input type="hidden" name="pageNo" value="1"/>
            <div class="tools hide">
                <ul class="toolbar">
                    <!--<li class="click">
                        <a href="add.do"><span><img src="${base}/resources/images/t01.png" /></span>添加</a>
                    </li>
                    <li>
                        <a href="javascript:Evaluators.delAll();"><span><img src="${base}/resources/images/t03.png" /></span>删除</a>
                    </li>
                    <li style="padding:0 0">
                        <span style="margin:0px 5px">关键字</span>
	                	<input name="keyword" type="text" class="dfinput" style="width:160px;" value="${keyword!''}" />&nbsp;
                    </li>
                    <li>
						<a href="javascript:Evaluators.search()"><span><img src="${base}/resources/images/search24.png" /></span>查找</a>
                    </li>-->
                </ul>
            </div>
			</form>
            <table class="tablelist">
                <thead>
                    <tr>
                        <!--<th width="30"><input name="" type="checkbox" onclick="evaluators.form.checkToggle('ids',this);"/></th>-->
						<th width="50">
                       		 编号<i class="sort"><img src="${base}/resources/images/px.gif" /></i>
	                    </th>
	                    <th width="100">品牌</th>
	                    <th width="100">上牌日期</th>
						<th width="160">具体车型</th>
	                    <th>归属地</th>
						<#if page.category==0>
	                    <th width="160">期望价格</th>
						</#if>
	                    <th width="90">里程</th>
	                    <th width="100">卖家名称</th>
	                    <th width="100">卖家电话</th>
	                    <th width="100">提交时间</th>
	                    <th width="100">处理时间</th>
	                    <th width="50">操作</th>
                    </tr>
                </thead>
                <tbody>
                	
              	<#if page??>
					<#list page.list as d>
                    <tr id="tr_${d.id}">
                        <!--<td>
                            <input name="ids" type="checkbox" value="${d.id}" />
                        </td>-->
						<td>${d_index+1!''}</td>
						<td><#if d.brand??>${d.brand.parent.name}&nbsp;${d.brand.name}</#if></td>
	                    <td>${d.regYear!''}-${d.regMonth!''}</td>
	                    <td>${d.title!''}</td>            
	                    <td>${d.belong!''}</td>
						<#if page.category==0>
	                    <td>${d.price!''}</td>
						</#if>
	                    <td>${d.mileage!''}</td>
	                    <td>${d.sellerName!''}</td>
	                    <td>${d.sellerTelephone!''}</td>
	                    <td>${d.postDate!''}</td>
	                    <td>${d.dealDate!''}</td>
                        <td>
                        	<a href="javascript:ResaleApply.del('${d.id}')" class="tablelink">删除</a>
                        </td>
                    </tr>
					</#list>
					</#if>
                </tbody>
            </table>
			<@common.pagination />
        </div>
    </body>
</html>